class Solution:
    def moveZeroes(self, nums) -> None:
        start = 0
        for i in range(len(nums)):
            if nums[i] == 0:
                continue
            nums[start] = nums[i]
            start += 1
        for i in range(start, len(nums)):
            nums[i] = 0

if __name__ == '__main__':
    so = Solution()
    m = [0,1,0,3,12]
    so.moveZeroes(m)
    print(m)
